use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Config {
    #[serde(rename = "title")]
    pub title: Option<String>,
    #[serde(rename = "desc")]
    pub desc: Option<String>,
    #[serde(rename = "types")]
    pub types: Option<Vec<SectionType>>,
}

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct SectionType {
    #[serde(default)]
    pub hidden: bool,
    #[serde(rename = "section")]
    pub section: String,
    #[serde(rename = "type")]
    pub type_: String,
}
